<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增专家')" />
	<th:block th:include="include :: datetimepicker-css" />
	<th:block th:include="include :: footer" />
	<th:block th:include="include :: datetimepicker-js" />
	<link th:href="@{/css/city-picker.css}" rel="stylesheet"  />
	<script th:src="@{/js/city-picker.data.js}"></script>
	<script th:src="@{/js/city-picker.js}"></script>
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-tJcExpertInfo-add">
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label"><span style="color: red; ">*</span>名字：</label>
						<div class="col-sm-8">
							<input id="expertName" name="expertName" class="form-control" type="text" required>
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label"><span style="color: red; ">*</span>性别：</label>
						<div class="col-sm-8">
							<label class="col-sm-4 control-label">
								<input type="radio" checked="" value="1" id="men" name="sex">男 </label>
							<label class="col-sm-4 control-label">
								<input type="radio" value="0" id="women" name="sex">女 </label>
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label"><span style="color: red; ">*</span>职务：</label>
						<div class="col-sm-8">
							<input id="job" name="job" class="form-control" type="text" required>
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label"><span style="color: red; ">*</span>专业：</label>
						<div class="col-sm-8">
							<input id="specialty" name="specialty" class="form-control" type="text">
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">职称：</label>
						<div class="col-sm-8">
							<input id="title" name="title" class="form-control" type="text">
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">所在单位：</label>
						<div class="col-sm-8">
							<input id="station" name="station" class="form-control" type="text">
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">所属行政区：</label>
						<div class="col-sm-8">
							<input name="region" id="region" class="form-control" readonly type="text"  data-toggle="city-picker">
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">专家属性：</label>
						<div class="col-sm-8">
							<input id="property" name="property" class="form-control" type="text">
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">是否在岗：</label>
						<div class="col-sm-8">
							<label class="col-sm-4 control-label">
								<input type="radio" checked="" value="1" id="isOnDuty1" name="isOnDuty">是 </label>
							<label class="col-sm-4 control-label">
								<input type="radio" value="0" id="isOnDuty2" name="isOnDuty">否 </label>
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group">
						<label class="col-sm-4 control-label">联系方式：</label>
						<div class="col-sm-8">
							<input id="tel" name="tel" class="form-control" type="text">
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
	<div class="row">
		<div class="col-sm-offset-5 col-sm-10">
			<button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保存</button>&nbsp;
			<button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
		</div>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/tJcExpertInfo"
		$("#form-tJcExpertInfo-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-tJcExpertInfo-add').serialize());
	        }
	    }
	</script>
</body>
</html>
